123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 :
- * 설 명 :
- * 설 계 자 :
- * 작 성 자 :
- * 작 성 일 :
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>[자동판정]트리/트리설명 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <info>
- <workflag/>
- <ajclscd1/>
- <ajclscd2/>
- <ajclscd3/>
- <fromdd/>
- <todd/>
- <detlrecm/>
- <langflag/>
- <viewseq/>
- <useflag/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <instcd/>
- <grupid/>
- <lvl/>
- <seqno/>
- <prtyn/>
- </info>
- <ajbclist>
- <ajbc_langflag/>
- <ajbc_ajclsnm/>
- <ajbc_viewseq/>
- <ajbc_fromdd/>
- <ajbc_todd/>
- <ajbc_useflag/>
- <ajbc_fstrgstrid/>
- <ajbc_fstrgstdt/>
- <ajbc_lastupdtrid/>
- <ajbc_lastupdtdt/>
- <ajbc_instcd/>
- <ajbc_ajclscd1/>
- <ajbc_ajclscd2/>
- <ajbc_ajclscd3/>
- <ajbc_grupid/>
- <ajbc_workflag/>
- </ajbclist>
- <ajmmlist>
- <ajmm_langflag/>
- <ajmm_detlrecm/>
- <ajmm_seqno/>
- <ajmm_fromdd/>
- <ajmm_todd/>
- <ajmm_fstrgstrid/>
- <ajmm_fstrgstdt/>
- <ajmm_lastupdtrid/>
- <ajmm_lastupdtdt/>
- <ajmm_instcd/>
- <ajmm_ajclscd1/>
- <ajmm_ajclscd2/>
- <ajmm_ajclscd3/>
- <ajmm_useflag/>
- <ajmm_workflag/>
- <ajmm_prtyn/>
- </ajmmlist>
- <ajbclist>
- <ajbc_langflag/>
- <ajbc_ajclsnm/>
- </ajbclist>
- </main>
- <send>
- <savedata/>
- <savedata1/>
- <tabflag/>
- <insertflag/>
- <reqdata>
- <ajmm_alldataviewyn/>
- <ajmm_srchdetlrecm/>
- <srchworkflagcd/>
- <srchgrupid/>
- <alldataviewyn/>
- </reqdata>
- </send>
- <hidden>
- <ajmminfo>
- <ajmm_orgmentcls/>
- <ajmm_orgfromdd/>
- <ajmm_orgtodd/>
- <ajmm_orgdetlrecm/>
- </ajmminfo>
- </hidden>
- <popupdata>
- <ajmm_ajclscd1/>
- <ajmm_ajclscd2/>
- <ajmm_ajclscd3/>
- <ajmm_clickyn/>
- <ajmm_fromdd/>
- <ajmm_todd/>
- </popupdata>
- <popupnode>
- <ajclscdlist/>
- </popupnode>
- <init>
- <A0001list>
- <A0001>
- <cdnm/>
- <cdid/>
- </A0001>
- </A0001list>
- <A0003list>
- <A0003>
- <cdnm/>
- <cdid/>
- </A0003>
- </A0003list>
- <A0004list>
- <A0004>
- <cdnm/>
- <cdid/>
- </A0004>
- </A0004list>
- <A0006list>
- <A0006>
- <cdnm/>
- <cdid/>
- </A0006>
- </A0006list>
- <A0008list>
- <A0008>
- <cdnm/>
- <cdid/>
- </A0008>
- </A0008list>
- <A0009list>
- <A0009>
- <cdnm/>
- <cdid/>
- </A0009>
- </A0009list>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
- <script type="javascript" src="../../../ast/healexamautojudgweb/js/AJDG001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- fDefaultSet();
- fDefaultSubmit();
- fAuthCheck(btn_dept_save);
- model.refresh();
- ]]>
- </script>
- <submission id="TXAHB03302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/ajmmlist" resultref="/root/main/ajmmlist"/>
- <submission id="TRAHB03301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/ajmmlist"/>
- <submission id="TRAHB03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init_03400"/>
- <submission id="TXAHB03402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata/ajbclist" resultref="/root/popupdata"/>
- <submission id="TRAHB03403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/ajbclist"/>
- <submission id="TRAHB03805" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fDefaultDataSet(){
- submit("TRAHB03301");
- }
-
- function fDefaultSet(){
- button6.dispatch("DOMActivate");
- model.setValue("/root/send/reqdata/srchworkflagcd" , 'TREE');
- model.setValue("/root/send/reqdata/srchgrupid",'B');
- model.setValue("/root/send/reqdata/alldataviewyn" , "N");
- }
-
- function fDefaultSubmit() {
- fSetCombo(); //콤보박스셋팅
- fSrchTree(); //트리조회
-
- //자동판정 공통코드 조회
- fGetHealexamCodeList( new Array("A0001" ,"A0003" , "A0004" , "A0006" ,"A0008","A0009"),
- new Array("/root/init/A0001list" , "/root/init/A0003list" ,"/root/init/A0004list", "/root/init/A0006list", "/root/init/A0008list" , "/root/init/A0009list") );
- }
-
- function fSetCombo(){
- //콤보박스 조회
- model.makeValue("/root/send/reqdata/srchworkflagcd", model.getValue("/root/send/reqdata/srchworkflagcd"));
- model.makeValue("/root/send/reqdata/srchgrupid",model.getValue("/root/send/reqdata/srchgrupid"));
- submit("TRAHB03402",false);
-
- }
-
- function fSrchTree(){
- //트리 조회
- model.makeValue("/root/send_03400/reqdata/alldataviewyn", model.getValue("/root/send/reqdata/alldataviewyn"));
- model.makeValue("/root/send_03400/reqdata/srchworkflagcd", model.getValue("/root/send/reqdata/srchworkflagcd"));
- model.makeValue("/root/send_03400/reqdata/srchgrupid",model.getValue("/root/send/reqdata/srchgrupid"));
- // model.makeValue("/root/send_03400/reqdata/srchflag", 'ajmm');
- submit("TRAHB03401", false);
- }
-
- function fInit(){
- model.makeValue("/root/send/newyn" , '');
- model.resetInstanceNode("/root/send/savedata");
- // model.resetInstanceNode("/root/send/reqdata");
- model.resetInstanceNode("/root/main/info");
- model.resetInstanceNode("/root/main/ajmmlist");
- model.resetInstanceNode("/root/main/ajbclist");
- cmb_ajclscd3.disabled = false;
- }
-
- function fDefaultComboSet(lvl , cd1, cd2 ) {
-
- if(lvl == "1"){
- cmb_ajclscd2.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ cd1 + "' and ajclscd2 != '"+ cd2 +"' and ajclscd3 = '000']";
- model.setValue("/root/main/info/ajclscd2" , "");
- cmb_ajclscd2.refresh();
- }else if(lvl == "2"){
- cmb_ajclscd3.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ cd1 + "' and ajclscd2 = '"+ cd2 +"' and ajclscd3 != '000']";
- model.setValue("/root/main/info/ajclscd3" , "");
- cmb_ajclscd3.refresh();
-
- }
- }//fDefaultComboSet end
- //데이터 처리
- function fSave() {
- var workflag = cmb_workflag.label;
- // 인스턴스값 넘길 데이터 노드에 셋팅
- if(workflag ==""){messageBox("원하시는 작업을 선택하세요" , "I999"); return false;}
- if(messageBox(workflag + " 하시겠습니까?", "Q999") != 6) return false;
-
- var tabflag = model.getValue("/root/send/tabflag");
-
- if(model.getValue("/root/hidden/info/fromdd") > model.getValue("/root/main/info/todd")){
- messageBox("시작일자가 종료일자보다 미래입니다.","E999"); return;
- }
-
- if(tabflag == "ajbc"){
- model.makeNode("/root/send/savedata/ajbclist");
- model.makeValue("/root/send/savedata/ajbclist/workflag", model.getValue("/root/main/info/workflag"));
- model.makeValue("/root/send/savedata/ajbclist/clscdflag", "ajclscd" + model.getValue("/root/main/info/lvl")); //생성대상
- model.makeValue("/root/send/savedata/ajbclist/ajclscd1", model.getValue("/root/main/info/ajclscd1"));
- model.makeValue("/root/send/savedata/ajbclist/ajclscd2", model.getValue("/root/main/info/ajclscd2"));
- model.makeValue("/root/send/savedata/ajbclist/ajclscd3", model.getValue("/root/main/info/ajclscd3"));
- model.makeValue("/root/send/savedata/ajbclist/viewseq", model.getValue("/root/main/info/viewseq"));
- model.makeValue("/root/send/savedata/ajbclist/grupid", model.getValue("/root/main/info/grupid"));
- model.makeValue("/root/send/savedata/ajbclist/lvl", model.getValue("/root/main/info/lvl"));
-
- model.makeValue("/root/send/savedata/ajbclist/newfromdd", model.getValue("/root/main/info/fromdd"));
- model.makeValue("/root/send/savedata/ajbclist/newtodd", model.getValue("/root/main/info/todd"));
- model.makeValue("/root/send/savedata/ajbclist/orgfromdd", model.getValue("/root/main/info/orgfromdd"));
- model.makeValue("/root/send/savedata/ajbclist/orgtodd", model.getValue("/root/main/info/orgtodd"));
- model.makeValue("/root/send/savedata/ajbclist/viewseq", model.getValue("/root/main/info/viewseq"));
- model.makeValue("/root/send/savedata/ajbclist/langflag", model.getValue("/root/main/info/langflag"));
- model.makeValue("/root/send/savedata/ajbclist/ajclsnm", model.getValue("/root/main/info/detlrecm"));
- model.makeValue("/root/send/savedata/ajbclist/insertflag", model.getValue("/root/send/insertflag"))
- var sub = submit("TXAHB03402",false);
-
- }
- if(tabflag == "ajmm"){
- model.makeNode("/root/send/savedata/ajmmlist");
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_workflag", model.getValue("/root/main/info/workflag"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_ajclscd1", model.getValue("/root/main/info/ajclscd1"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_ajclscd2", model.getValue("/root/main/info/ajclscd2"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_ajclscd3", model.getValue("/root/main/info/ajclscd3"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_viewseq", model.getValue("/root/main/info/viewseq"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_useflag", '4'); //ajmm용도 - 4.트리설명
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_seqno", model.getValue("/root/main/info/seqno"));
-
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_newfromdd", model.getValue("/root/main/info/fromdd"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_newtodd", model.getValue("/root/main/info/todd"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_orgfromdd", model.getValue("/root/main/info/orgfromdd"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_orgtodd", model.getValue("/root/main/info/orgtodd"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_langflag", model.getValue("/root/main/info/langflag"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_detlrecm", model.getValue("/root/main/info/detlrecm"));
- model.makeValue("/root/send/savedata/ajmmlist/ajmm_prtyn", model.getValue("/root/main/info/prtyn"));
- var sub = submit("TXAHB03302",false);
-
- }
- if(sub == true){
- messageBox("데이터가 처리 되었습니다.","I999");
- window.reload();
- }
-
-
-
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:590px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:356px; height:14px; ">[자동판정]트리/트리설명 관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:727px; ">
- <import id="import1" src="../../../ast/healexamautojudgweb/xrw/SPAHB03400_[자동판정]기준분류관리.xrw" style="left:0px; top:55px; width:230px; height:615px; "/>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <line id="line13" class="line_4" style="x1:1117px; y1:7px; x2:1117px; y2:29px; "/>
- <select id="chk_srchendyn" ref="/root/send/reqdata/alldataviewyn" visibility="hidden" overflow="visible" appearance="full" cols="2" rows="1" style="left:1035px; top:10px; width:75px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>전체보기</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fAjmmAllView_03300();
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- fAjmmDefView_03300();
- model.refresh();
- ]]>
- </script>
- </select>
- <button id="btn_srch" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCombo();
- model.resetInstanceNode("/root/main/info");
- model.setValue("/root/main/info/grupid",model.getValue("/root/send/reqdata/srchgrupid"));
-
- fSrchTree();
- model.resetInstanceNode("/root/main/ajbclist");
- model.resetInstanceNode("/root/main/ajmmlist");
-
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">트리분류 :</caption>
- <select1 id="combo1" ref="/root/send/reqdata/srchworkflagcd" disabled="true" appearance="minimal" style="left:100px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0001list/A0001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/reqdata/srchgrupid" appearance="minimal" style="left:205px; top:8px; width:160px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0009list/A0009">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_grupid.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_click" class="btn2_letter4" visibility="hidden" style="left:10px; top:45px; width:64px; height:19px; ">
- <caption>화면클릭</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ajclscd1 = model.getValue("/root/popupdata/ajclscd1");
- var ajclscd2 = model.getValue("/root/popupdata/ajclscd2");
- var ajclscd3 = model.getValue("/root/popupdata/ajclscd3");
- var fromdd = model.getValue("/root/popupdata/fromdd");
- var lvl = model.getValue("/root/popupdata/lvl");
- var tabvalue = model.getValue("/root/tmp/tabvalue");//탭 선택시 값이 셋팅됨
- var useflag = model.getValue("/root/main/ajmminfo/ajmm_useflag");
- var grupid = "";
- if(useflag == ""){useflag = '1'};
- output1.value= ajclscd1; output2.value= ajclscd2; output3.value= ajclscd3;
- var newyn = model.getValue("/root/send/newyn");
-
- if(newyn != "Y"){
- if(lvl != '1'){//헤더 클릭시 나오는 데이터가 없으므로 막는다.
- //트리
- model.makeValue("/root/send/reqdata/alldataviewyn","N");
- model.makeValue("/root/send/reqdata/srchgrupid",model.getValue("/root/send/reqdata/srchgrupid"));
- model.makeValue("/root/send/reqdata/srchworkflagcd",model.getValue("/root/send/reqdata/srchworkflagcd"));
- model.makeValue("/root/send/reqdata/srchajclscd1",ajclscd1);
- model.makeValue("/root/send/reqdata/srchajclscd2",ajclscd2);
- model.makeValue("/root/send/reqdata/srchajclscd3",ajclscd3);
- model.makeValue("/root/send/reqdata/srchfromdd",fromdd);
- model.makeValue("/root/send/reqdata/srchlangflag",'TREE');
-
- submit("TRAHB03403",false);
-
- //설명
- model.makeValue("/root/send/reqdata/ajmm_alldataviewyn","N");
- model.makeValue("/root/send/reqdata/ajmm_srchuseflag" ,'4');
- model.makeValue("/root/send/reqdata/ajmm_srchajclscd1",ajclscd1);
- model.makeValue("/root/send/reqdata/ajmm_srchajclscd2",ajclscd2);
- model.makeValue("/root/send/reqdata/ajmm_srchajclscd3",ajclscd3);
- model.makeValue("/root/send/reqdata/ajmm_alldataviewyn", 'N');
- model.makeValue("/root/send/reqdata/ajmm_comboyn" , 'N');
- submit("TRAHB03301", false);
- // if(ajclscd2 == '000'){ajclscd2 = '' ; }
- model.setValue("/root/main/info/ajclscd1" , ajclscd1);
- model.setValue("/root/main/info/ajclscd2" , ajclscd2);
- model.setValue("/root/main/info/ajclscd3" , ajclscd3);
- if(ajclscd2 != '000'){
- cmb_ajclscd2.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ ajclscd1 + "' and ajclscd2 = '"+ ajclscd2 +"' and ajclscd3 = '000']";
- cmb_ajclscd3.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ ajclscd1 + "' and ajclscd2 = '"+ ajclscd2 +"' and ajclscd3 != '000']";
- }
- }else{
-
- model.resetInstanceNode("/root/main/ajbclist"); //레벨1이 아니면 리스트가 존재 하므로 리스트를 초기화 시켜준다.
- model.resetInstanceNode("/root/main/info");//트리를 선택햇으므로 기존에 정보는 지워주고 리스트만 남겨둔다.
- }
- }else{
- var grupid = model.getValue("/root/send/reqdata/srchgrupid");
- if(grupid == "B"){
- cmb_lvl.value = lvl ;
- }else{
- if(lvl > 2){messageBox(combo2.label + "은 중분류생성까지 가능합니다", 'I999'); return false; }
- }
- // if(ajclscd2 == '000'){ajclscd2 = '' ; }
- model.setValue("/root/main/info/ajclscd1" , ajclscd1);
- model.setValue("/root/main/info/ajclscd2" , ajclscd2);
- model.setValue("/root/main/info/ajclscd3" , ajclscd3);
- if(ajclscd2 != '000'){
- cmb_ajclscd2.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ ajclscd1 + "' and ajclscd2 = '"+ ajclscd2 +"' and ajclscd3 = '000']";
- cmb_ajclscd3.choices.itemset.attribute("nodeset") ="/root/init_03400/initajclscdlist[ajclscd1 = '"+ ajclscd1 + "' and ajclscd2 = '"+ ajclscd2 +"' and ajclscd3 != '000']";
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:235px; top:73px; width:960px; height:597px; ">
- <case id="case_dept" style="left:0px; top:0px; width:960px; height:597px; ">
- <caption id="caption49" class="cell_1" style="left:0px; top:195px; width:64px; height:180px; ">항목명</caption>
- <datagrid id="grd_ajbclist" nodeset="/root/main/ajbclist" autoresize="true" caption="언어^내용" colsep="^" colwidth="70, 819" ellipsis="true" rowheight="150" rowsep="|" tooltip="true" style="left:65px; top:195px; width:893px; height:180px; ">
- <col disabled="true" ref="ajbc_langflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0008list/A0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ajbc_ajclsnm" type="input"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.makeValue("/root/main/info/workflag", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_workflag"));
- model.makeValue("/root/main/info/ajclscd1", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd1"));
- model.makeValue("/root/main/info/ajclscd2", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd2"));
- model.makeValue("/root/main/info/ajclscd3", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd3"));
- model.makeValue("/root/main/info/fromdd", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_fromdd"));
- model.makeValue("/root/main/info/todd", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_todd"));
- model.makeValue("/root/main/info/orgfromdd", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_fromdd"));
- model.makeValue("/root/main/info/orgtodd", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_todd"));
-
- model.makeValue("/root/main/info/useflag", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_useflag"));
- model.makeValue("/root/main/info/grupid", model.getValue("/root/send/reqdata/srchgrupid"));
- model.makeValue("/root/main/info/fstrgstrid", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_fstrgstrid"));
- model.makeValue("/root/main/info/fstrgstdt", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_fstrgstdt"));
- model.makeValue("/root/main/info/lastupdtrid", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_lastupdtrid"));
- model.makeValue("/root/main/info/lastupdtdt", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_lastupdtdt"));
- model.makeValue("/root/main/info/langflag", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_langflag"));
- model.makeValue("/root/main/info/viewseq", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_viewseq"));
- model.makeValue("/root/main/info/lvl", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_lvl"));
- model.makeValue("/root/main/info/detlrecm", model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclsnm"));
-
- model.makeValue("/root/send/insertflag" , "langinsert");
-
- //분류코드값 셋팅
- var ajclscd1 = model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd1");
- var ajclscd2 = model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd2");
- var ajclscd3 = model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_ajclscd3");
- var lvl = model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_lvl");
-
- if(model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_todd") <= getCurrentDate()){
- messageBox("이미종료된 내역입니다.","I999");
- //종료가 된 데이터는 수정 금지
- ipt_fromdd.disabled="true" ;
- ipt_todd.disabled="true" ;
- tar_detlrecm.disabled="true" ;
- btn_dept_save.disabled = "true";
- // cmb_ajmm_langflag.disabled="true" ;
- }else if(model.getValue("/root/main/ajbclist[" + grd_ajbclist.row +"]/ajbc_todd") > getCurrentDate()){
- messageBox("사용중이므로 이력처리, 수정, 삭제가 가능합니다.","I999");
- //사용 중이면 이력 처리
- ipt_fromdd.disabled="false" ;
- ipt_todd.disabled="false" ;
- tar_detlrecm.disabled="false" ;
- btn_dept_save.disabled = "false";
- // cmb_ajmm_langflag.disabled="true" ;
- }
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <line id="line3" class="line_3" style="x1:0px; y1:595px; x2:352px; y2:595px; "/>
- <line id="line4" class="line_2" style="x1:0px; y1:76px; x2:174px; y2:76px; "/>
- <line id="line7" class="line_1" style="x1:0px; y1:22px; x2:960px; y2:22px; "/>
- <caption id="caption5" class="cell_1" style="left:0px; top:52px; width:64px; height:23px; ">시작일자</caption>
- <caption id="caption8" class="cell_1" style="left:230px; top:52px; width:64px; height:23px; ">종료일자</caption>
- <caption id="caption11" class="cell_1" style="left:230px; top:27px; width:64px; height:23px; ">대분류</caption>
- <caption id="caption19" class="tit_2" style="left:0px; top:7px; width:153px; height:14px; ">과/검사분류</caption>
- <input id="ipt_fromdd" ref="/root/main/info/fromdd" class="input_default" inputtype="date" appearance="minimal" style="left:66px; top:55px; width:159px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/info/todd" class="input_default" inputtype="date" appearance="minimal" style="left:296px; top:55px; width:174px; height:19px; "/>
- <button id="button4" class="btn2_letter3" style="left:861px; top:2px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_dept_save" class="btn5_letter2" style="left:915px; top:2px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <caption id="caption22" class="cell_1" style="left:474px; top:27px; width:64px; height:23px; ">중분류</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:102px; x2:960px; y2:102px; "/>
- <select1 id="cmb_ajclscd1" ref="/root/main/info/ajclscd1" class="combo_default" appearance="minimal" style="left:296px; top:29px; width:174px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init_03400/initajclscdlist[initlvl ='1']">
- <label ref="ajclsnm"/>
- <value ref="ajclscd1"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDefaultComboSet('1', cmb_ajclscd1.value, '000' );
- model.setValue("/root/main/info/lvl",'2'); cmb_lvl.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_ajclscd2" ref="/root/main/info/ajclscd2" class="combo_default" appearance="minimal" style="left:540px; top:29px; width:175px; height:19px; ">
- <choices>
- <itemset>
- <label ref="ajclsnm"/>
- <value ref="ajclscd2"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fDefaultComboSet('2', cmb_ajclscd1.value,cmb_ajclscd2.value);
- model.setValue("/root/main/info/lvl",'3'); cmb_lvl.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption23" class="cell_1" style="left:0px; top:26px; width:64px; height:23px; ">처리구분</caption>
- <select1 id="cmb_workflag" ref="/root/main/info/workflag" class="combo_default" appearance="minimal" style="left:66px; top:29px; width:159px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0006list/A0006">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var workflag = cmb_workflag.value;
- if( workflag =="I"){
- cmb_useflag.disabled = true;
- }else if( workflag !="I"){
- cmb_useflag.disabled = false;
- }
-
- if( workflag =="U"){
- cmb_lvl.disabled = true;
- }else{
- cmb_lvl.disabled = false;
- }
- */
- ]]>
- </script>
- </select1>
- <line id="line18" class="line_2" style="x1:0px; y1:50px; x2:960px; y2:50px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:128px; x2:960px; y2:128px; "/>
- <caption id="caption1" class="cell_1" style="left:719px; top:27px; width:64px; height:23px; ">소분류</caption>
- <select1 id="cmb_ajclscd3" ref="/root/main/info/ajclscd3" class="combo_default" appearance="minimal" style="left:785px; top:29px; width:170px; height:19px; ">
- <choices>
- <itemset>
- <label ref="ajclsnm"/>
- <value ref="ajclscd3"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption20" class="cell_1" style="left:0px; top:78px; width:64px; height:23px; ">생성일</caption>
- <input id="ipt_fstrgstdt" ref="/root/main/info/fstrgstdt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" appearance="minimal" style="left:66px; top:80px; width:159px; height:19px; "/>
- <caption id="caption24" class="cell_1" style="left:230px; top:78px; width:64px; height:23px; ">생성자</caption>
- <input id="ipt_fstrgstrid" ref="/root/main/info/fstrgstrid" class="input_default" disabled="true" appearance="minimal" style="left:296px; top:80px; width:174px; height:19px; "/>
- <caption id="caption25" class="cell_1" style="left:474px; top:78px; width:64px; height:23px; ">수정일</caption>
- <caption id="caption26" class="cell_1" style="left:719px; top:78px; width:64px; height:23px; ">수정자</caption>
- <input id="ipt_lastupdtdt" ref="/root/main/info/lastupdtdt" class="input_default" disabled="true" format="yyyy-mm-dd hh:nn:ss" appearance="minimal" style="left:540px; top:80px; width:175px; height:19px; "/>
- <input id="ipt_lastupdtrid" ref="/root/main/info/lastupdtrid" class="input_default" disabled="true" appearance="minimal" style="left:785px; top:80px; width:170px; height:19px; "/>
- <line id="line12" class="line_2" style="x1:0px; y1:171px; x2:960px; y2:171px; "/>
- <caption id="caption43" class="cell_1" style="left:474px; top:103px; width:64px; height:23px; ">트리순서</caption>
- <caption id="caption44" class="cell_1" style="left:0px; top:104px; width:64px; height:23px; ">언어</caption>
- <input id="ipt_viewseq" ref="/root/main/info/viewseq" class="input_default" format="999999" appearance="minimal" style="left:540px; top:106px; width:174px; height:19px; "/>
- <select1 id="cmb_langflag" ref="/root/main/info/langflag" class="combo_default" appearance="minimal" style="left:66px; top:106px; width:159px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0008list/A0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line34" class="line_2" style="x1:0px; y1:375px; x2:960px; y2:375px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:130px; width:64px; height:40px; ">내용</caption>
- <textarea id="tar_detlrecm" ref="/root/main/info/detlrecm" style="left:66px; top:130px; width:889px; height:40px; "/>
- <caption id="caption7" class="tit_2" style="left:0px; top:175px; width:131px; height:14px; ">트리 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:190px; x2:960px; y2:190px; "/>
- <datagrid id="grd_ajmmlist" nodeset="/root/main/ajmmlist" autoresize="true" caption="언어^내용" colsep="^" colwidth="70, 819" mergecellsfixedrows="bycolrec" rowheight="150" rowsep="|" style="left:65px; top:400px; width:893px; height:193px; ">
- <col disabled="true" ref="ajmm_langflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/A0008list/A0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ajmm_detlrecm" type="input"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- model.makeValue("/root/main/info/workflag", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_workflag"));
- model.makeValue("/root/main/info/ajclscd1", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd1"));
- model.makeValue("/root/main/info/ajclscd2", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd2"));
- model.makeValue("/root/main/info/ajclscd3", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd3"));
- model.makeValue("/root/main/info/fromdd", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_fromdd"));
- model.makeValue("/root/main/info/todd", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_todd"));
- model.makeValue("/root/main/info/orgfromdd", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_fromdd"));
- model.makeValue("/root/main/info/orgtodd", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_todd"));
- model.makeValue("/root/main/info/useflag", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_useflag"));
- model.makeValue("/root/main/info/grupid", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_grupid"));
- model.makeValue("/root/main/info/fstrgstrid", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_fstrgstrid"));
- model.makeValue("/root/main/info/fstrgstdt", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_fstrgstdt"));
- model.makeValue("/root/main/info/lastupdtrid", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_lastupdtrid"));
- model.makeValue("/root/main/info/lastupdtdt", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_lastupdtdt"));
- model.makeValue("/root/main/info/langflag", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_langflag"));
- model.makeValue("/root/main/info/viewseq", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_viewseq"));
- model.makeValue("/root/main/info/detlrecm", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_detlrecm"));
- model.makeValue("/root/main/info/seqno", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_seqno"));
- model.makeValue("/root/main/info/prtyn", model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_prtyn"));
-
- //분류코드값 셋팅
- var ajclscd1 = model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd1");
- var ajclscd2 = model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd2");
- var ajclscd3 = model.getValue("/root/main/ajmmlist[" + grd_ajmmlist.row +"]/ajmm_ajclscd3");
-
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption9" class="cell_1" style="left:0px; top:400px; width:64px; height:194px; ">설명문</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:395px; x2:960px; y2:395px; "/>
- <caption id="caption10" class="tit_2" style="left:0px; top:380px; width:133px; height:14px; ">트리설명 리스트</caption>
- <caption id="caption14" class="cell_1" style="left:474px; top:52px; width:64px; height:23px; ">용도</caption>
- <select1 id="cmb_useflag" ref="/root/main/info/useflag" class="combo_default" disabled="true" appearance="minimal" style="left:540px; top:55px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0003list/A0003">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption15" class="cell_1" style="left:719px; top:52px; width:64px; height:23px; ">상세분류</caption>
- <select1 id="cmb_grupid" ref="/root/main/info/grupid" class="combo_default" disabled="true" appearance="minimal" style="left:785px; top:55px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/A0009list/A0009">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption16" class="cell_1" style="left:230px; top:104px; width:64px; height:23px; ">트리레벨</caption>
- <select1 id="cmb_lvl" ref="/root/main/info/lvl" class="combo_default" appearance="minimal" style="left:296px; top:106px; width:175px; height:19px; ">
- <choices>
- <item>
- <label>레벨2</label>
- <value>1</value>
- </item>
- <item>
- <label>레벨3</label>
- <value>2</value>
- </item>
- <item>
- <label>레벨4</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var lvl = cmb_lvl.value;
- if( lvl =="3"){
- model.setValue("/root/main/info/ajclscd3", "000");
- cmb_ajclscd3.refresh();
- }else if( lvl =="2"){
- model.setValue("/root/main/info/ajclscd2", "000");
- model.setValue("/root/main/info/ajclscd3", "000");
- cmb_ajclscd2.refresh();cmb_ajclscd3.refresh();
- }else if( lvl =="1"){
- model.setValue("/root/main/info/ajclscd1", "000");
- model.setValue("/root/main/info/ajclscd2", "000");
- model.setValue("/root/main/info/ajclscd3", "000");
- cmb_ajclscd1.refresh();cmb_ajclscd2.refresh();cmb_ajclscd3.refresh();
- }
- ]]>
- </script>
- </select1>
- <button id="btn_ajbc_add" class="btn2_letter3" style="left:806px; top:2px; width:53px; height:19px; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInit();
- model.makeValue("/root/send/newyn" , 'Y');
- if(model.getValue("/root/send/tabflag") == 'ajbc'){
- model.setValue("/root/main/info/grupid",model.getValue("/root/send/reqdata/srchgrupid"));
- model.setValue("/root/main/info/lvl",'1');
- model.setValue("/root/main/info/useflag" ,'');
- model.setValue("/root/main/info/prtyn" ,'');
- cmb_lvl.disabled="false" ;
- cmb_prtyn.disabled= true ;
- }else{
- model.setValue("/root/main/info/grupid",'');
- model.setValue("/root/main/info/lvl",'');
- model.setValue("/root/main/info/useflag" ,'4');
- cmb_lvl.disabled="true" ;
- model.setValue("/root/main/info/seqno",'');
- model.setValue("/root/main/info/prtyn" ,'Y');
- cmb_prtyn.disabled= false ;
- }
- if(model.getValue("/root/main/info/grupid") == 'M' ){
- cmb_ajclscd3.disabled = true;
- }else{
- cmb_ajclscd3.disabled = false;
- }
- model.setValue("/root/main/info/detlrecm" , '-------------내용을 입력해주세요----------------');
- model.setValue("/root/main/info/viewseq",'auto');
- model.setValue("/root/main/info/workflag" ,'I');
- model.setValue("/root/main/info/langflag",'KOR');
- model.setValue("/root/main/info/todd" , '99991231');
- model.setValue("/root/main/info/fromdd", getCurrentDate().toDate().getAddDate(1).getDateFormat("YYYYMMDD"));
- model.makeValue("/root/send/insertflag" , ""); //langinsert 값을 빼줘야 일련번호를 새로 딴다.
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:720px; top:105px; width:64px; height:23px; ">설명출력</caption>
- <select1 id="cmb_prtyn" ref="/root/main/info/prtyn" class="combo_default" disabled="true" appearance="minimal" style="left:785px; top:106px; width:170px; height:19px; ">
- <choices>
- <item>
- <label>예</label>
- <value>Y</value>
- </item>
- <item>
- <label>아니오</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <output id="output1" style="left:271px; top:30px; width:24px; height:19px; "/>
- <output id="output2" style="left:515px; top:30px; width:24px; height:19px; "/>
- <output id="output3" style="left:759px; top:30px; width:24px; height:19px; "/>
- </case>
- </switch>
- <button id="button6" class="btn_sw" group="tab" selected="true" style="left:235px; top:52px; width:60px; height:22px; ">
- <caption>트리</caption>
- <toggle case="case_dept" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/tabflag" , 'ajbc');
-
- // model.setValue("/root/main/info/langflag",'KOR');
- caption19.value = "트리";
-
- caption10.attribute("visibility") = "hidden";
- line2.attribute("visibility") = "hidden";
- grd_ajmmlist.attribute("visibility") = "hidden";
- caption9.attribute("visibility") = "hidden";
- cmb_prtyn.disabled= true ;
- fInit();
- model.makeValue("/root/send/reqdata/srchworkflagcd", 'TREE');
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn_sw" group="tab" style="left:295px; top:52px; width:60px; height:22px; ">
- <caption>트리설명</caption>
- <toggle case="case_dept" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/tabflag" , 'ajmm');
-
- // model.setValue("/root/main/info/langflag",'KOR');
-
- caption19.value = "트리설명";
- caption10.attribute("visibility") = "visible";
- line2.attribute("visibility") = "visible";
- grd_ajmmlist.attribute("visibility") = "visible";
- caption9.attribute("visibility") = "visible";
- cmb_lvl.disabled="true" ;
- cmb_prtyn.disabled= false ;
- fInit();
- model.makeValue("/root/send/reqdata/srchworkflagcd", 'TREE');
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|